import axios from "axios";
import type { InternalAxiosRequestConfig, AxiosResponse } from "axios";

const service = axios.create({
    baseURL: "http://localhost:3000"
});


// 请求拦截器

service.interceptors.request.use((config: InternalAxiosRequestConfig) => {

    return config;
})

// 响应拦截器

service.interceptors.response.use((res: AxiosResponse) => {

    return res;
})

export default service;